package com.lhf.springcloud;

import com.lhf.springcloud.Entity.teacher.TeacherData;
import com.lhf.springcloud.config.StorageProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * SpringCloud实现文件上传
 */
@SpringBootApplication
@EnableEurekaClient
@ComponentScan(basePackages = {"com.lhf.springcloud"})
@MapperScan("com.lhf.springcloud.mapper")
//加载配置属性
@EnableConfigurationProperties(StorageProperties.class)
public class FileUploadApplication {

	public static void main(String[] args) {
		SpringApplication.run(FileUploadApplication.class, args);
	}

}
